<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>两个display：inline-block元素放到一起会产生一段空白</title>
    <style>
        html,
        body {
            padding: 0;
            margin: 0;

        }

        .container {
            width: 600px;
            height: 200px;
            color: #0d7ebf;

        }

        .left {
            font-size: 20px;
            background: #81c995;
            display: inline-block;
            width: 100px;
            height: 100px;
            text-align: center;
        }

        .right {
            font-size: 20px;
            background: #ee675c;
            display: inline-block;
            width: 100px;
            height: 100px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="left">
            左
        </div>
        <div class="right">
            右
        </div>
    </div>
</body>
</html>